<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath()+request.getServletPath().substring(0,request.getServletPath().lastIndexOf("/")+1);
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录</title>
</head>
<script type="text/javascript" src="<%=basePath%>js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
	function isClear(){
		$("#username").val("");
		$("#password").val("");
	}
</script>
<body>
<div style="height:300px;wight:1px;"></div>
	<form action="<%=basePath %>login" method="post">
		<table align="center" cellpadding="4" cellspacing="4">
			<tr><td align="right">用户名：</td><td><input type="text" name="username" id="username" value=""/></td></tr>
			<tr><td align="right">密码：</td><td><input type="password" name="password" id="password" value=""/></td></tr>
			<tr><td colspan="2" align="center"><input type="submit" value="登录">&nbsp;&nbsp;&nbsp;没有账号？赶紧<a href="<%=basePath %>user/register">注册</a></td></tr>
		</table>
	</form>
</body>
</html>